<?php
/* SVN FILE: $Id$ */
/* MgZona Test cases generated on: 2009-06-18 12:06:45 : 1245345825*/
App::import('Model', 'MgZona');

class MgZonaTestCase extends CakeTestCase {
	var $MgZona = null;
	var $fixtures = array('app.mg_zona', 'app.mg_municipio', 'app.mg_colonia');

	function startTest() {
		$this->MgZona =& ClassRegistry::init('MgZona');
	}

	function testMgZonaInstance() {
		$this->assertTrue(is_a($this->MgZona, 'MgZona'));
	}

	function testMgZonaFind() {
		$this->MgZona->recursive = -1;
		$results = $this->MgZona->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('MgZona' => array(
			'id'  => 1,
			'mg_municipio_id'  => 1,
			'descripcion'  => 'Lorem ipsum dolor ',
			'created'  => '2009-06-18',
			'modified'  => '2009-06-18',
			'adicionado_por'  => 'Lorem ipsum dolor ',
			'modificado_por'  => 'Lorem ipsum dolor '
			));
			$this->assertEqual($results, $expected);
	}
}
?>